function prepareLinks() {
if (!document.getElementsByTagName)return false ;
if (!document.getElementById)return false ;
if (!document.getElementById("popuplinks")) {
alert("'popuplinks' division missing!")
return false ;
}
var oList = document.getElementById("popuplinks") ;
var aLnks = oList.getElementsByTagName("a");
THIS IS IT
<script language="javascript">document.getElementById("content_view").style.background = "#000000";</script>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx http://en.wikiquote.org/wiki/Help:Table#Pipe_syntax
<script language="JavaScript">document.write('<blockquote>')</script>
<script language="JavaScript">document.write('</blockquote>')</script>
yellow box
<script language="JavaScript">document.write('<div style="width: 90%; margin: 10px auto 10px 30px;border: 1px solid #9999aa; padding: 10px; background-color: #ffffdd;">')</script>
<script language="JavaScript">document.write('</div>')</script>
popups windows - create on new page ... see http://sealwyf.wikispaces.com/Sandbox009
<script type="text/JavaScript">
function prepareLinks() {
if (!document.getElementsByTagName)return false ;
if (!document.getElementById)return false ;
if (!document.getElementById("popuplinks")) {
alert("'popuplinks' division missing!")
return false ;
}
var oList = document.getElementById("popuplinks") ;
var aLnks = oList.getElementsByTagName("a");
for (var i=0; i<aLnks.length; i++) {
aLnks[i].onclick = function() {
return popUp(this.getAttribute("href"));
}
}
}
function popUp(winURL) {
window.open(winURL, "popup", "width=640,height=480,resizable=yes,scrollbars=yes,toolbar=yes");
return false;
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}
addLoadEvent(prepareLinks);
</script>
............................................................
(see http://sealwyf.wikispaces.com/Sandbox009)
<script language="JavaScript">
document.write('<div id="popuplinks">')
</script>
http://en.wikiquote.org/wiki/Help:Table
colour codes for wiki
http://convertalot.com/webcolours.html
330033
change the background colour
http://sealwyf.wikispaces.com/Sandbox015
<script language="javascript" type="text/javascript">
document.getElementsByTagName("body").item(0).style.background = "#
330033";
</script>
THIS IS IT
<script language="javascript">document.getElementById("content_view").style.background = "#000000";</script>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx
http://en.wikiquote.org/wiki/Help:Table#Pipe_syntax
http://sealwyf.wikispaces.com/Sandbox015
http://sealwyf.wikispaces.com/Sandbox015
basic for changing script
<script language="JavaScript">
document.write('[text to include]')
</script>